.signin-page {
  width: 100%;
  
  .signin-card {
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    width: 100%;
  }

  .card-title-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .task-list-item {
    padding: 0;
    
    .task-card {
      width: 100%;
      transition: all 0.3s;
      
      &:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }
      
      .task-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        
        .task-title {
          display: flex;
          align-items: center;
          gap: 12px;
          flex: 1;
          
          .task-icon {
            font-size: 24px;
            color: #1890ff;
          }
          
          .ant-typography {
            margin-bottom: 0;
          }
        }
      }
      
      .task-info {
        display: flex;
        justify-content: space-between;
        
        .time-info {
          flex: 1;
          color: #666;
          font-size: 14px;
          
          > div {
            margin-bottom: 8px;
            
            &:last-child {
              margin-bottom: 0;
            }
            
            .anticon {
              margin-right: 8px;
            }
          }
        }
        
        .course-info {
          flex: 1;
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          
          > * {
            margin-bottom: 8px;
          }
          
          .time-remaining {
            width: 100%;
            margin-top: 8px;
            
            .ant-progress {
              margin-top: 4px;
            }
          }
        }
      }
    }
  }
}

// Modal styles
.signin-modal, .confirm-modal {
  .ant-modal-body {
    padding: 24px;
  }
}

.camera-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  
  .location-info {
    display: flex;
    align-items: center;
    color: #52c41a;
    background-color: #f6ffed;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #b7eb8f;
    margin-top: 12px;
    
    .anticon {
      margin-right: 8px;
      font-size: 16px;
    }
  }
}

.signin-modal-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  
  .task-info-section {
    margin-bottom: 16px;
    
    .ant-typography {
      margin-bottom: 8px;
      
      &:last-child {
        margin-bottom: 0;
      }
    }
    
    .location-info {
      display: flex;
      align-items: center;
      color: #52c41a;
      background-color: #f6ffed;
      padding: 6px 12px;
      border-radius: 4px;
      border: 1px solid #b7eb8f;
      margin-top: 12px;
      
      .anticon {
        margin-right: 8px;
        font-size: 16px;
      }
      
      .location-details {
        margin-left: 8px;
        font-size: 12px;
        color: #666;
      }
    }
  }
  
  .camera-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 320px;
    margin: 20px 0;
    
    .camera-placeholder {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 320px;
      background-color: #f5f5f5;
      border-radius: 8px;
      border: 1px dashed #d9d9d9;
      gap: 16px;
      
      .ant-btn {
        padding: 0 24px;
        height: 48px;
        font-size: 16px;
      }
      
      .ant-typography {
        color: #8c8c8c;
      }
    }
    
    .camera-container {
      width: 100%;
      max-width: 640px;
      margin: 0 auto;
      
      video {
        width: 100%;
        border-radius: 8px;
      }
      
      canvas {
        display: none;
      }
    }
  }
  
  .photo-confirm-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    
    .photo-preview {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
      
      img {
        max-width: 100%;
        max-height: 320px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        object-fit: contain;
        border: 1px solid #f0f0f0;
      }
    }
    
    .confirm-message {
      margin-top: 16px;
      text-align: center;
      padding: 12px 16px;
      background-color: #f0f5ff;
      border-radius: 8px;
      border: 1px solid #d6e4ff;
      width: 100%;
      
      .ant-typography {
        font-size: 16px;
        color: #1890ff;
      }
    }
  }
  
  .action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
  }
}

.signin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 200px;
  padding: 32px 0;
  
  .ant-spin {
    margin-bottom: 16px;
  }
  
  .ant-typography {
    text-align: center;
    
    &:last-child {
      font-size: 14px;
    }
  }
}

// Captured face preview styles
.captured-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  
  .preview-image {
    max-width: 320px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

// 响应式调整
@media (max-width: 576px) {
  .signin-page {
    .task-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      
      button {
        width: 100%;
      }
    }
    
    .course-info {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      
      .time-remaining {
        width: 100%;
      }
    }
  }
}

.signin-success-info {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 16px;
  
  .info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e8e8e8;
    
    &:last-child {
      border-bottom: none;
    }
    
    > span:first-child {
      color: #666;
    }
    
    > span:last-child {
      font-weight: 500;
    }
  }
}